package cn.com.open.itembank.dto;

/**
 * Created by lucky on 2018/3/8.
 */

import cn.com.open.itembank.common.BaseModel;
import cn.com.open.itembank.common.enums.ImportType;
import cn.com.open.itembank.common.enums.SourceType;

/**
 * The type Import input model.
 */
public class ImportParameter extends BaseModel {
    /**
     * Instantiates a new Import parameter.
     */
    public ImportParameter() {
        this.itemBankId = "";
        this.resourceId = "";
        this.chapterId = "";
        this.userId = "";
        this.sourceType = SourceType.TESTPAPER;
        this.importType = ImportType.WORD;
        this.paperId = "";
        this.organizationId = "";
        this.paperTitle = "";
        this.source = 1;

        this.appKey = "";
        this.appSecret = "";
        this.textContent = "";
    }

    /**
     * 题库Id
     */
    private String itemBankId;

    /**
     * 资源Id
     */
    private String resourceId;

    /**
     * 章节Id
     */
    private String chapterId;

    /**
     * 用户Id
     */
    private String userId;

    /**
     * 来源类型
     */
    private SourceType sourceType;

    /**
     * 文件类型
     */
    private ImportType importType;

    /**
     * 试卷Id
     */
    private String paperId;

    /**
     * 机构Id
     */
    private String organizationId;

    /**
     * 试卷标题
     */
    private String paperTitle;

    /**
     * 来源：0内部，1外部
     */
    private Integer source;

    /**
     * 导入文本
     */
    private String textContent;

    /**
     * AppKey
     */
    private String appKey;

    /**
     * AppSecret
     */
    private String appSecret;

    public String getItemBankId() {
        return itemBankId;
    }

    public void setItemBankId(String itemBankId) {
        this.itemBankId = itemBankId;
    }

    /**
     * Gets resource id.
     *
     * @return the resource id
     */
    public String getResourceId() {
        return resourceId;
    }

    /**
     * Sets resource id.
     *
     * @param resourceId the resource id
     */
    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    /**
     * Gets chpater id.
     *
     * @return the chpater id
     */
    public String getChapterId() {
        return chapterId;
    }

    /**
     * Sets chpater id.
     *
     * @param chapterId the chpater id
     */
    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    /**
     * Gets user id.
     *
     * @return the user id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * Sets user id.
     *
     * @param userId the user id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * Gets paper id.
     *
     * @return the paper id
     */
    public String getPaperId() {
        return paperId;
    }

    /**
     * Sets paper id.
     *
     * @param paperId the paper id
     */
    public void setPaperId(String paperId) {
        this.paperId = paperId;
    }

    /**
     * Gets organization id.
     *
     * @return the organization id
     */
    public String getOrganizationId() {
        return organizationId;
    }

    /**
     * Sets organization id.
     *
     * @param organizationId the organization id
     */
    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    /**
     * Gets paper title.
     *
     * @return the paper title
     */
    public String getPaperTitle() {
        return paperTitle;
    }

    /**
     * Sets paper title.
     *
     * @param paperTitle the paper title
     */
    public void setPaperTitle(String paperTitle) {
        this.paperTitle = paperTitle;
    }

    /**
     * Gets source.
     *
     * @return the source
     */
    public Integer getSource() {
        return source;
    }

    /**
     * Sets source.
     *
     * @param source the source
     */
    public void setSource(Integer source) {
        this.source = source;
    }

    /**
     * Gets app key.
     *
     * @return the app key
     */
    public String getAppKey() {
        return appKey;
    }

    /**
     * Sets app key.
     *
     * @param appKey the app key
     */
    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    /**
     * Gets app secret.
     *
     * @return the app secret
     */
    public String getAppSecret() {
        return appSecret;
    }

    /**
     * Sets app secret.
     *
     * @param appSecret the app secret
     */
    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    /**
     * Gets source type.
     *
     * @return the source type
     */
    public SourceType getSourceType() {
        return sourceType;
    }

    /**
     * Sets source type.
     *
     * @param sourceType the source type
     */
    public void setSourceType(SourceType sourceType) {
        this.sourceType = sourceType;
    }

    /**
     * Gets input type.
     *
     * @return the input type
     */
    public ImportType getImportType() {
        return importType;
    }

    /**
     * Sets input type.
     *
     * @param importType the input type
     */
    public void setImportType(ImportType importType) {
        this.importType = importType;
    }

    public String getTextContent() {
        return textContent;
    }

    public void setTextContent(String textContent) {
        this.textContent = textContent;
    }
}
